package com.mt.roll.wms.params;



import com.mt.roll.core.base.BaseParam;
import com.mt.roll.core.validator.groups.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "报废类型信息参数对象", description = "用于新增和更新报废类型信息")
public class ScrapTypeInformationParam extends BaseParam {

    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增
     */
    @ApiModelProperty(value = "主键，更新时需要填写", example = "1")
    @NotNull(message = "废品报废ID不能为空", groups = {UpdateGroup.class})
    private Long id;
    /**
     * 报废类型
     */
    @ApiModelProperty(value = "报废类型", required = true, example = "scrapType")
    @NotBlank(message = "报废类型不能为空")
    private String scrapType;

    /**
     * 报废类型编码
     */
    @ApiModelProperty(value = "报废类型编码", required = true, example = "code")
    @NotBlank(message = "报废类型编码不能为空")
    private String code;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", example = "description")
    private String description;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", example = "remark")
    private String remark;
}
